load("@nazel//:nazel_build.bzl", "nazel_cc_library")

package(default_visibility = ["//visibility:public"])

nazel_cc_library(
    name = "http2",
    srcs = [
        "connection.cc",
        "session.cc",
        "session_pool.cc",
    ],
    hdrs = [
        "asio_context.h",
        "connection.h",
        "error.h",
        "request_parser.h",
        "session.h",
        "session_pool.h",
    ],
    linkopts = [
        "-lnghttp2",
    ],
    deps = [
        "//cc/coin2/base/request",
        "@nghttp2//nghttp2",
    ],
)
